package Model;

/**
 *
 * @author Simon Marshall - jc209673
 */
public class Tile {

    /**
     * @author Simon Marshall - jc209673
     */
    private int _row;     // row of final position
    private int _col;     // col of final position
    private String _face;  // string to display 

    /**
     * 
     * @param row
     * @param col
     * @param face
     */
    public Tile(int row, int col, String face) {
        _row = row;
        _col = col;
        _face = face;
    }

    /**
     * 
     * @param newFace
     */
    public void setFace(String newFace) {
        _face = newFace;
    }

    /**
     * 
     * @return
     */
    public String getFace() {
        return _face;
    }

    /**
     * 
     * @param r
     * @param c
     * @return
     */
    public boolean isInFinalPosition(int r, int c) {
        return r == _row && c == _col;

    }
}
